package com.example.image.demos.util;


import com.example.image.demos.entity.User;

public class UserThread {
    public static final ThreadLocal<User> tl = new ThreadLocal<>();
    public static void addUser(User user) {
        tl.set(user);
    }
    public static User getUser() {
        return tl.get();
    }
    public static void removeUser() {
        tl.remove();
    }
}
